<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>候选供应商显示</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<meta http-equiv="content-type" content="text/html;charset=utf-8">

<link rel="stylesheet" href="js/easyui/demo/demo.css" type="text/css"></link>
<link rel="stylesheet" href="js/easyui/themes/icon.css" type="text/css"></link>
<link rel="stylesheet" href="js/easyui/themes/default/easyui.css"
	type="text/css"></link>
<script type="text/javascript" src="js/easyui/jquery-1.6.min.js"></script>
<script type="text/javascript" src="js/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="script/common.js"></script>
<script type="text/javascript"
	src="js/easyui/themes/easyui-lang-zh_CN.js"></script>
<link href="css/style.css" rel="stylesheet" type="text/css">
<style type="text/css">
</style>
</head>

<body>
<div>
	<form id="candidateSupplierForm" action=""  method="post" arget="_blank">	
		<table border="0" cellspacing="10" cellpadding="0">
			<tr>
				<td>产品编码</td>
				<td><span>${procureProduct.productCode}</span></td>  
				<td></td>		
				<td>供应商数量</td>
				<td><span>${procureProduct.suppelierCount}</span> </td>
			</tr>
			<tr>
				<td>采购数量</td>
				<td><span>${procureProduct.procCount}</span></td>  
				<td></td>		
				<td>交货时间</td>
				<td><span><fmt:setLocale value="zh_cn" />
				<fmt:formatDate value="${procureProduct.deliveryDate}" type="date" dateStyle="long" /></span> </td>
			</tr>
			<tr>
				<td>发布时间</td>
				<td><input class="easyui-datebox"  id="sendTime" value="" style="height:26px;width:120px;" required="true" missingMessage="不能为空"> </td>
				<td></td>		
				<td>截至时间</td>
				<td><input class="easyui-datebox"  id="endTime" value="" style="height:26px;width:120px;" required="true" missingMessage="不能为空"> </td>
			</tr>
			<tr>
				<td>备注</td>
				<td colspan="4"><input class="easyui-textbox" type="text" id="remark" prompt=""
						value="" style="height:30px;width:330px; " data-options="multiline:true"> </td>
			</tr>
		</table>
					
	</div>
	<div style="margin:20px 20px 0px 20px;width:92%;">
		<div id="options" class="toolbar">
				<div style="float: left; margin-bottom: 10px;">
					<input class="easyui-textbox" type="text" id="suid" prompt="供应商编码"
						value="" data-options="height:26"/> 
					<input class="easyui-textbox" type="text" id="suna" prompt="供应商全称"
						value="" data-options="height:26"/> 
					<input class="easyui-linkbutton" type="button" 
						style="margin-left: 15px;" onclick="queryCandidate()" value="查询 "/>
			  		<input class="easyui-linkbutton" type="button" id="query"
						style="margin-left: 15px;" onclick="publish()" value="发布 "/>
			  </div>
		</div>
		<div style="width:100%; float: left;" id="materialShow">
			<table id="candidateSuin" class="easyui-datagrid" style="width:100%;"
				data-options="singleSelect:false,checkbox:true">
				<thead>
					<tr>
						<th data-options="field:'ck',checkbox:true"></th>
						<th data-options="field:'code'" width="">序号</th>
						<th data-options="field:'suid'">供应商编码</th>
						<th data-options="field:'suna '">供应商全称</th>
						<th data-options="field:'cous'">联系人</th>
						<th data-options="field:'tel1'">联系电话</th>
					</tr>
				</thead>
				<c:forEach items="${allSuinList}" var="su" varStatus="i">
					<tr>
						<td></td>
								
						<td>${i.index+1+offset*10 }</td>

						<td>${su.suid}</td>

						<td>${su.suna}</td>

						<td>${su.cous}</td>

						<td>${su.tel1}</td>

					</tr>
				</c:forEach>
			</table>
		</div>
	</form>
</div>

</body>
</html>
